package com.qingxin.sys.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * SysGroup entity. 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_group")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class SysGroup extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = 140849007198297149L;
	// Fields
	private String groupid;
	private String pid;
	private String groupname;
	private Integer grouptype;//类型：1地区、2企业、3园区、4农资企业、5质量检测
	private String remark;
	private String createBy;
	private Date createTime;
	private String updateBy;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public SysGroup() {
	}

	
	public SysGroup(String groupid, String groupname) {
		this.groupid = groupid;
		this.groupname = groupname;
	}


	public SysGroup(String groupid, String groupname, Date createTime) {
		this.groupid = groupid;
		this.groupname = groupname;
		this.createTime = createTime;
	}


	/** full constructor */
	public SysGroup(String pid, String groupname, Integer grouptype,
			String remark, String createBy, Date createTime,
			String updateBy, Date updateTime) {
		this.pid = pid;
		this.groupname = groupname;
		this.grouptype = grouptype;
		this.remark = remark;
		this.createBy = createBy;
		this.createTime = createTime;
		this.updateBy = updateBy;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@Column(name = "groupid", unique = true, nullable = false, length = 50)
	public String getGroupid() {
		return this.groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	@Column(name = "pid", length = 50)
	public String getPid() {
		return this.pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	@Column(name = "groupname", length = 100)
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Column(name = "grouptype")
	public Integer getGrouptype() {
		return this.grouptype;
	}

	public void setGrouptype(Integer grouptype) {
		this.grouptype = grouptype;
	}

	@Column(name = "remark", length = 2000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_by", length = 50)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_by", length = 50)
	public String getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	@Column(name = "update_time", length = 23)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}